package course

import (
	"encoding/xml"
	"time"

	"awfan.cn/utils"
	"gopkg.in/mgo.v2/bson"
)

type COURSES_XML struct {
	XMLName xml.Name `xml:"courses" json:"-"`

	Courses []COURSE_XML `xml:"course" json:"courses"`
}

type COURSE_XML struct {
	Id           bson.ObjectId         `xml:"id" json:"id" bson:"_id,omitempty"`
	Name         string                `xml:"name" json:"name" bson:"name,omitempty"`
	Member       utils.EMBED_DISPLAYID `xml:"member" json:"member" bson:"member,omitempty"`
	Created_time time.Time             `xml:"created_time" json:"created_time" bson:"created_time,omitempty"`
}
